namespace DownloadMailTask
{

	/// <summary>
	/// Possible responses received from the server when performing an Authentication
	/// </summary>
	public enum  AuthenticationResponse
	{
		/// <summary>
		/// Authentication succeeded
		/// </summary>
		SUCCESS=0,
		/// <summary>
		/// Login doesn't exist on the POP3 server
		/// </summary>		
		INVALIDUSER=1,
		/// <summary>
		/// Password is invalid for the give login
		/// </summary>
		INVALIDPASSWORD=2,
		/// <summary>
		/// Invalid login and/or password
		/// </summary>
		INVALIDUSERORPASSWORD=3
	}		

	/// <summary>
	/// Authentication method to use
	/// </summary>
	/// <remarks>TRYBOTH means code will first attempt by using APOP method as its more secure.
	///  In case of failure the code will fall back to USERPASS method.
	/// </remarks>
	public enum  AuthenticationMethod
	{
		/// <summary>
		/// Authenticate using the USER/PASS method. USER/PASS is secure but all POP3 servers may not support this method
		/// </summary>
		USERPASS=0,
		/// <summary>
		/// Authenticate using the APOP method
		/// </summary>
		APOP=1,
		/// <summary>
		/// Authenticate using USER/PASS. In case USER/PASS fails then revert to APOP
		/// </summary>
		TRYBOTH=2
	}

}
